/* static/style.css */
/* 自定义模态框样式 */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.custom-alert-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.custom-alert h3 {
    margin-top: 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.alert-message {
    margin: 15px 0;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.import-success {
    color: #28a745;
    font-weight: bold;
    margin: 15px 0 10px 0;
    font-size: 16px;
}

.import-updated {
    color: #17a2b8;
    font-weight: bold;
    margin: 20px 0 10px 0;
    font-size: 16px;
}

.import-failed {
    color: #dc3545;
    font-weight: bold;
    margin: 20px 0 10px 0;
    font-size: 16px;
}

.import-list {
    margin: 10px 0 15px 0;
    padding-left: 20px;
    list-style-type: decimal;
}

.import-list li {
    margin: 8px 0;
    padding: 5px 0;
    word-break: break-all;
}

.custom-alert button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-top: 15px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.custom-alert button:hover {
    background: #0056b3;
}

/* 滚动条样式 */
.alert-message::-webkit-scrollbar {
    width: 6px;
}

.alert-message::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.alert-message::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.alert-message::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f8fb;
    color: #222;
    /*min-height: 100vh;*/
}

* {
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1746a2;
    --danger: #dc3545;
    --success: #22c55e;
    --bg: #f4f8fb;
    --card: #fff;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --radius: 10px;
    --transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

.container {
    display: flex;
    gap: 32px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-height: 100vh;
    position: relative; /* 为水印定位 */
}

.container::before {
    content: '解释权归保定中心站所有';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 50px;
    color: rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

@media (max-width: 800px) {
    .sidebar button:not(.essential),
    #warehouse-search {
        display: none;
    }

    .table-container {
        overflow-x: auto;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        padding: 6px !important;
        gap: 18px;
    }
    .sidebar, .main {
        min-width: 0 !important;
        padding: 12px !important;
        width: 100% !important;
    }
    .search-bar { flex-direction: column; gap: 8px; }
}

/* 侧边栏样式 */
.sidebar {
    width: 15%;
    min-width: 150px;
}

.main {
    width: 85%;
    padding-right: 2%;
}

.product-table th,
.product-table td {
    width: calc(20% - 10px);
    padding: 12px 15px;
    font-size: 15px;
}

@media (max-width: 800px) {
    .sidebar button:not(.essential),
    #warehouse-search {
        display: none;
    }

    .table-container {
        overflow-x: auto;
    }
}

@media (max-width: 900px) {
    .sidebar {
        min-width: 180px;
    }
}

.main h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: var(--card);
    margin: 5% auto;
    padding: 32px 32px 24px 32px;
    border-radius: var(--radius);
    width: 400px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}

.modal h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    color: #344750;
    font-weight: 500;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #4a5568;
    transform: rotate(90deg);
}

/* 列表样式 */
#warehouse-list, #product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#warehouse-list li, .record {
    padding: 0;
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

#warehouse-list li:hover, .record:hover {
    transform: translateY(-2px);
    background-color: #f8f9fa;
}
/* 选中库房时的样式 */
#warehouse-list li.active {
    background-color: #007BFF; /* 选中时的背景色 */
    color: white; /* 选中时的文字颜色 */
}
/* 高级交互效果 */
button.export-btn {
    margin-left: 15px;
    background-color: #e74c3c;
}

button.export-btn:hover {
    background-color: #c0392b;
}

.loading {
    opacity: 0.6;
    cursor: wait;
}

/* 深度层次的阴影和对比 */
.deep-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 颜色变量定义（可扩展） */
:root {
    --primary-color: #3498db;
    --secondary-color: #e74c3c;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
}

/* 鼠标悬停效果 */
/* .hover-scale {
    transition: transform 0.2s ease;
} */

.hover-scale:hover {
    transform: scale(1.03);
}
#productModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: none; /* 默认隐藏弹出框 */
}

#productModal input {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#productModal button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#productModal button:hover {
    background-color: #45a049;
}
/* 设置库房列表项的样式 */
#warehouse-list {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#warehouse-list ul {
    width: 100%;
    padding: 0;
    margin: 0;
}

#warehouse-list li {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between; /* 让名字和删除按钮分开显示 */
    align-items: center; /* 垂直居中对齐 */
    padding: 10px; /* 增加内边距，增加间距 */
    margin-bottom: 10px; /* 增加列表项之间的间距 */
    background-color: #f9f9f9; /* 背景色 */
    border: 1px solid #ddd; /* 给每个列表项加边框 */
    border-radius: 5px; /* 圆角边框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 轻微的阴影效果 */
}

/* 删除按钮的样式 */
#warehouse-list li button {
    margin-left: 10px; /* 按钮与库房名称之间的间距 */
    padding: 5px 10px; /* 按钮内边距 */
    background-color: #3498db; /* 删除按钮背景色 */
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* 删除按钮的悬停效果 */
#warehouse-list li button:hover {
    background-color: #3498db;
}
/* 为侧边栏添加样式 */
.sidebar {
    width: 250px; /* 设置侧边栏的宽度 */
    padding: 20px; /* 为侧边栏添加内边距 */
    background-color: #f4f4f4; /* 侧边栏的背景色 */
    border-right: 1px solid #ddd; /* 右侧边框 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 将内容居中对齐 */
}

/* 标题样式 */
.sidebar h2, .main h2, .modal h2 {
    text-align: center;
}
margin-bottom: 20px;
font-size: 18px;
color: #333;
}

/* 搜索框样式 */
#warehouse-search {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

/* 按钮样式 */
.sidebar button {
    width: 80%; /* 设置按钮宽度占父容器的80% */
    padding: 10px;
    margin-bottom: 15px; /* 按钮之间的间距 */
    background-color: #4CAF50; /* 按钮背景色 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* 主按钮样式 */
button.primary {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

button:active {
    transform: translateY(0);
}

/* 主按钮样式 */
button.primary {
    background-color: var(--primary);
    color: white;
}

/* 危险按钮样式 */
button.danger {
    background-color: var(--danger);
    color: white;
}

/* 成功按钮样式 */
button.success {
    background-color: var(--success);
    color: white;
}

/* 响应式调整 */
@media (max - width: 600px) {
    button {
        padding: 8px 16px;
        font-size: 12px;
    }
}
.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 15px;
}



.product-table th {
    padding: 12px 7px;
    text-align: left;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-table td {
    padding: 7px 10px;
    text-align: center;
    vertical-align: middle;
    text-align: left;
    font-size: 15px;
    word-break: break-all;
    white-space: pre-line;
    border-radius: 6px;
    background: #fafdff;
    transition: background 0.2s;
    line-height: 1.3;
    min-height: 28px;
}

.product-table td:not(:last-child):hover {
    background: #f0f6ff;
}
.product-table td {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* 物资操作列按钮美化，仅影响操作列 */
.product-table .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    justify-content: center;
    align-items: center;
    min-width: 90px;
    width: 100%;
    flex-wrap: nowrap;
}
@media (max-width: 700px) {
    .product-table .action-buttons {
        min-width: 60px;
        gap: 5px;
        flex-wrap: nowrap;
    }
}


.product-table .action-buttons button {
    background: none;
    border: none;
    color: #888;
    font-size: 15px;
    padding: 0 8px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    cursor: pointer;
    outline: none;
    display: inline;
    transition: color 0.18s;
}
.product-table .action-buttons button:first-child {
    color: var(--primary);
    font-weight: 500;
}
.product-table .action-buttons button:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.product-table .action-buttons {
    flex-wrap: nowrap;
    /* 可根据实际情况调整间距 */
    gap: 10px;
}

.product-table .action-buttons button {
    min-width: 50px;
    padding: 4px 8px;
    font-size: 13px;
}

@media (max-width: 700px) {
    .product-table .action-buttons {
        gap: 3px;
    }
    .product-table .action-buttons button {
        min-width: 40px;
        padding: 3px 6px;
    }
}

.product-table .action-buttons button:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37,99,235,0.13);
    transform: translateY(-2px) scale(1.04);
}
.product-table .action-buttons button:active {
    background: var(--primary);
    transform: none;
}
@media (max-width: 700px) {
    .product-table .action-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }
    .product-table .action-buttons button {
        min-width: 40px;
        font-size: 12px;
        padding: 5px 10px;
    }
}

.product-table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-table th {
    background: var(--primary);
    color: #fff;
    border: none;
}
.product-table td {
    background: #f9fafb;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.product-table tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.product-table tr:hover {
    background: #e6f0ff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(37,99,235,0.04);
}

.product-table button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.product-table button:hover {
    background-color: #45a049;
}
#selected-products-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* 半透明背景 */
    overflow: auto; /* 防止弹窗内容超出窗口 */
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ddd;
    width: 800px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#selected-products-list {
    max-height: 800px;  /* **限制最大高度** */
    min-width: 1000px;   /* **确保内容宽度足够** */
    overflow-y: auto;   /* **当内容超出时显示滚动条** */
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
}

/*=======================================================inventory  start==========================================================*/
/* 模态框背景遮罩 */




/* 响应式布局调整 */
@media (max-width: 800px) {
    .sidebar button:not(.essential),
    #warehouse-search {
        display: none;
    }

    .table-container {
        overflow-x: auto;
    }
}

@media (max-width: 900px) {
    .sidebar {
        min-width: 160px !important;
        padding: 8px !important;
        width: 25% !important;
    }
    .main {
        padding: 12px 8px !important;
    }
}

@media (max-width: 600px) {
    .product-table th,
    .product-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
    .sidebar {
        min-width: 120px !important;
    }
}

.product-table {
    table-layout: fixed;
}

.product-table td {
    white-space: normal;
    word-break: break-word;
}

.product-table th {
    background: var(--primary);
    color: #fff;
    border: none;
}
.product-table td {
    background: #f9fafb;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.product-table tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.product-table tr:hover {
    background: #e6f0ff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(37,99,235,0.04);
}

.product-table button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.product-table button:hover {
    background-color: #45a049;
}
#selected-products-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* 半透明背景 */
    overflow: auto; /* 防止弹窗内容超出窗口 */
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ddd;
    width: 800px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#selected-products-list {
    max-height: 800px;  /* **限制最大高度** */
    min-width: 1000px;   /* **确保内容宽度足够** */
    overflow-y: auto;   /* **当内容超出时显示滚动条** */
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
}

/*=======================================================inventory    end==========================================================*/

.warehouse-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.warehouse-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

.warehouse-name {
    flex: 1;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.warehouse-name:hover {
    background-color: #f0f0f0;
}

.edit-warehouse-name {
    width: calc(100% - 30px);
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: inherit;
}

#warehouse-list li {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#warehouse-list li:hover {
    background-color: #f5f5f5;
}

.delete-btn {
    background: var(--danger);
}
.delete-btn:hover {
    background: #a71d2a;
}

.editable-cell {
    cursor: pointer;
    padding: 8px;
    min-height: 20px;
    position: relative;
    border-radius: 4px;
}

.editable-cell:hover {
    background: #e6f0ff;
}

.editable-cell .display-text {
    display: block;
    min-height: 20px;
}

.editable-cell .edit-input {
    width: 100%;
    height: 100%;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 基础按钮样式 */
button, .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    margin: 4px;
}

/* 主要操作按钮 */
.btn-primary {
    background-color: #4a6cf7;
    color: white;
    box-shadow: 0 2px 4px rgba(74, 108, 247, 0.3);
}

.btn-primary:hover {
    background-color: #3a5ce4;
    transform: translateY(-1px);
}

/* 次要操作按钮 */
.btn-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* 危险操作按钮 */
.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* 按钮禁用状态 */
button:disabled, .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-title {
    text-align: center;
}

.storage-list {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    margin: 0 auto;
}

.storage-list:hover {
    white-space: normal;
    overflow: visible;
}

.storage-list td {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
}

.storage-list td:hover {
    white-space: normal;
    overflow: visible;
    position: absolute;
    background: white;
    z-index: 100;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* 物资列表居中样式 */
.product-list {
    text-align: center;
}

.product-list th,
.product-list td {
    text-align: center;
    vertical-align: middle;
}

.product-list .product-title {
    display: inline-block;
    /*max-width: 100%;*/
}

/* 物资列表数据居中 - 修正版 */
.product-list table {
    margin: 0 auto;
}

.product-list td {
    text-align: center;
    vertical-align: middle;
}

.product-list .cell-content {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* 强制物资列表所有内容居中 */
.product-list,
.product-list * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

.product-list table {
    width: auto !important;
}

/* 精确物资列表居中方案 */
#product-list {
    display: block;
    width: 100%;
}

#product-list table {
    margin: 0 auto;
    width: auto;
    border-collapse: collapse;
}

#product-list th,
#product-list td {
    text-align: center;
    padding: 10px 1px;
    vertical-align: middle;
}

#product-list .cell-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
/* 主要按钮蓝色样式 */
button, .btn {
    background-color: #3b82f6;
    color: white;
    border: 1px solid #2563eb;
}

button:hover, .btn:hover {
    background-color: #2563eb;
}

/* 保留特殊按钮样式 */
.btn-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-danger {
    background-color: #ef4444;
    border-color: #dc2626;
}

button:disabled, .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 物资标题完美显示方案 */
.product-title {
  display: block;
  width: auto;
  min-width: 100px;
  white-space: normal;
  word-break: break-all;
  padding: 0 10px;
  box-sizing: border-box;
}

/* 确保表格列自适应 */
#product-list td[data-field='title'] {
  width: auto;
  min-width: 120px;
}

/* 库房列表对齐样式 */
#warehouse-list {
    margin: 0;
    padding: 0;
}

/* 添加库房按钮容器 */
.warehouse-button-container {
    margin: 0 0 12px 0;
}


/* 库房列表文字样式 */
#warehouse-list li span:first-child {
    font-size: 16px;
    text-align: center;
    display: inline-block;
    width: 100%;
}

/* 物资列表与按钮对齐 */
#product-list {
  padding: 0;
  margin: 0;
  width: 100%;
}

#product-list table {
  width: 100% !important;
  margin: 0;
  border-spacing: 0;
}

/* 物资表格边框增强 */
#product-list table {
  border-collapse: collapse;
}

#product-list th,
#product-list td {
  border: 1px solid #e2e8f0; /* 浅灰色边框 */
  position: relative;
  text-align: center; /* 水平居中 */
  vertical-align: middle; /* 垂直居中 */
  padding: -2px; /* 增加内边距 */
  text-align: center; /* 确保内容居中 */
  display: table-cell; /* 使用表格单元格居中 */
}

#product-list td img {
  max-width: 100px; /* 限制图片最大宽度 */
  max-height: 100px; /* 限制图片最大高度 */
  object-fit: contain; /* 保持图片比例 */
  position: absolute; /* 绝对定位 */
  top: 50%; /* 垂直居中 */
  left: 50%; /* 水平居中 */
  transform: translate(-50%, -50%); /* 精确居中 */
}

#product-list th {
  border-bottom: 2px solid #cbd5e1; /* 表头加粗下边框 */
}

/* 悬停效果已移除 */
